package com.chixing.day03_oop;

public class TriAngle {
    public static void main(String[] args) {
        int[][] arr = new int[8][8];
        arr[0][0] = 1;
        for (int i = 1; i < arr.length; i++) {
            for (int j = 1 ; j < arr[0].length; j++) {
                arr[i][j] = arr[i-1][j]+arr[i-1][j-1];
                if(arr[i][j]==0)break;
                else System.out.print(arr[i][j]+" ");
            }
            System.out.println();
        }
//        show(arr);

    }


}
